<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<?php
session_start();
?> 
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>manager order Page</title>
    <link href="../Styles/adminstype.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="js/admin_script.js"></script>
</head>
<body>
<div>
	<div class="hearder"><?php include 'admin_hearder.php'; ?></div>
	<div class="content">
		<div class="menu"><?php include 'admin_authenticate.php'; ?></div>
		<div class="boxContent"><?php
		if(!empty($_SESSION["adminName"]) && !empty($_SESSION["adminRole"])){
			require_once 'admin_content.php';
			
			$action = "";
			$id = "";
			if(isset($_REQUEST["act"])){
				$action = $_REQUEST["act"];
			}
			if ($action == "edit"){
				if(isset($_REQUEST["act"])){
					$id = $_REQUEST["id"];
			
					if (!isset($_SESSION["edit"])) {
						session_register("edit");
						$_SESSION["edit"] = $id;
					} else {
						$_SESSION["edit"] = $id;
					}
			
					require_once 'resource/form_edit_order.php';
				}
			} else {
				require_once 'resource/form_list_order.php';;
			}
		}
		?></div>
	</div>
	<div class="footer"><?php include 'admin_footer.php'; ?></div>
</div>
</body>
</html>